function ajaxPost(_type,_url,_data){
		$.ajax({
			type: _type,
			url: _url,
			data: _data,
			async: false,
			dateType:"json",
			success: function(msg){
				alert(msg);
			}
        });
}
(function($){
	$.fn.selInit = function(){return $(this).html("<option>请选择</option>");};
	$.area = function(){
	        $("#province").selInit();
	        $("#city").selInit();
	        $("#county").selInit();
	        var area = {
	                北京:{北京:"东城,西城,海淀,宣武,丰台"},
	                江苏:{南京:"江宁,六合,下关,浦口",无锡:"北塘,滨湖,江阴,宜兴"}
	                //
	        };
	        $.each(area,function(p){$("#province").append("<option>"+p+"</option>");});
	        $("#province").change(function(){
	                $("#city").selInit();
	                $("#county").selInit();
	                $.each(area,function(p,x){
	                        if($("#province option:selected").text() == p)
	                        {
	                                $.each(x,function(c,cx){
	                                        $("#city").append("<option>"+c+"</option>");
	                                });
	                                
	                                $("#city").bind("change",function(){
	                                        $("#county").selInit();
	                                        $.each(x,function(c,cx){
	                                                if($("#city option:selected").text() == c)
	                                                        {
	                                                                $.each(cx.split(","),function(){
	                                                                        $("#county").append("<option>"+this+"</option>");
	                                                                });
	                                                        }
	                                        });
	                                });
	                        }
	                });
	        });
	};
	
	var topicTitle = $("input[name=topicTitle]");//主题帖title
	var topicContent = $("textarea[name=topicContent]");//楼主说
	var productType = $("input[name=productType]");//商品类型，1，2，3
	var categoryNumber = $("input[name=categoryNumber]");//分类number
	var productBrand = $("input[name=productBrand]");//商品品牌
	var productMarketPrice = $("input[name=productMarketPrice]");//商品市场价
	var productPicturePath = $("input[name=productPicturePath]");//商品主图
	var topicDealerString = $("textarea[name=topicDealerString]");//@商家string
	
	var titleRegex = "^[a-z0-9A-Z]{3,40}/$";
	
	$("#submitTopicButton").click(function(){
		alert('submit')
		
	});
	
	alert('title:'+topicTitle.val()+'/content:'+topicContent.val()+'/type:'+productType.val()+'number:'+categoryNumber.val()+'/brand:'+productBrand.val()+'/price:'+productMarketPrice.val()+'/dealerString:'+topicDealerString.val()+'/path:'+productPicturePath.val())
	$.fn.checkTitle = function(){
		 var re = new RegExp(titleRegex);
		 return re.test(this.toString())
	};
	
})(jQuery);
	$(function(){
	        $("select").css("width","100px");
	        $.area();
	        });